package com.yy.permissions_general.common.config.mybatis;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description: TODO MyBatisPlus配置类
 * @Author: YangYI
 * @Date: 2021/8/3
 **/
@Configuration
public class MyBatisPlusConfig {

    /**
     * mybatis-plus分页插件
     *
     * @return {PaginationInterceptor}
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
